package 反射.动态代理;

/**
 * 普通的静态代理
 */
public class StaticProxy implements Interface {
	private Interface proxied;

	public StaticProxy(Interface proxied) {
		this.proxied = proxied;
	}

	@Override
	public void doSomeThing() {
		System.out.println("静态代理：doSomeThing");
		proxied.doSomeThing();
	}

	@Override
	public void somethingElse(String args) {
		System.out.println("静态代理: somethingElse");
		proxied.somethingElse(args);
	}
}